<#include "/common.include"/>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://yhsbjy.archives.com/tag"  prefix="yhs"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${webNameCN}</title>
</head>
<body>
	<div id="${webName}_grid_toolbar">
		<div style="border-bottom: 1px solid #ccc;">
			<form id="${webName}_search_form" method="post">
			<table style="margin: auto;">
				<tr height="50px;">
					<#list table.columns as column>
               		<td style="width: 280px;">${column.remarks}：
						<input type="text" id="${webName}_${column.columnName?lower_case}" name="${column.columnNameLower}"/>
					</td>
           			</#list>
					<!-- <td style="width: 280px;">货品名称：
						<input type="text" id="${webName}_name" name="productName"/>
					</td>
					<td style="width: 280px;">牌号：
						<input type="text" id="${webName}_code" name="productCode"/>
					</td>
					<td style="width: 280px;">规格：
						<input type="text" id="${webName}_standard" name="productStandard"/>
					</td>
					<td style="width: 280px;">产地：
						<input type="text" id="${webName}_area" name="productArea"/>
					</td> -->
					<td style="width:150px;">
						<a style="float:left;" id="resset_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-reload'">重置</a>            
						<a style="float:right;" id="query_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
					</td>
				</tr>
			</table>
			</form>
		</div>
		<div>
			<yhs:authorization>
				<a id="add_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">新增</a>
	 		</yhs:authorization>
	 		<yhs:authorization>
	 			<a id="delete_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
	 		</yhs:authorization>
	 		<yhs:authorization>
	 			<a id="edit_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
	 		</yhs:authorization>
	 		<yhs:authorization>
	 			<a id="view_${webName}_btn" class="easyui-linkbutton" data-options="iconCls:'icon-view',plain:true">查看</a>
 			</yhs:authorization>
 		</div>
	</div>
	<table id="${webName}_grid"></table>
	<div id="save_${webName}_dialog" class="easyui-dialog" style="width: 600px; height: auto;">
		<form id="save_${webName}_form" method="post">
			<input type="hidden" name="${pkColumnNameFirstLower}">
			<table class="from_table_cls">
				<tr style="height: 50px;">
					<#list table.columns as column>
					<td style="text-align: right;">${column.remarks}</td>
					<td>
					<!-- 缺少id -->
						<input class="easyui-textbox" data-options="required:true" name="${column.columnNameLower}" />
					</td>
           			</#list>
				</tr>
				<!-- <tr style="height: 50px;">
					<td style="text-align: right;">货物名称</td>
					<td>
						<input class="easyui-textbox" data-options="required:true" name="productName" />
					</td>
					<td style="text-align: right;">牌号</td>
					<td>
						<input class="easyui-textbox" data-options="required:true" name="productCode" />
					</td>
				</tr>
				<tr style="height: 50px;">
					<td style="text-align: right;">规格</td>
					<td>
						<input class="easyui-textbox" data-options="required:true" name="productStandard" />
					</td>
					<td style="text-align: right;">产地</td>
					<td>
						<input class="easyui-textbox" data-options="required:true" name="productArea" />
					</td>
				</tr>
				<tr style="height: 50px;">
					<td style="text-align: right;">单位</td>
					<td>
						<input class="easyui-textbox" data-options="required:true" name="productUnit" />
					</td>
					<td style="text-align: right;">备注</td>
					<td>
						<input class="easyui-textbox"  name="productRemark" />
					</td>
				</tr> -->
			</table>
			<div style="text-align:center;margin: 5px 0px;" id="${webName}_btns">
				<a id="${webName}_save_btn" class="easyui-linkbutton" data-options="iconCls:'icon-save'" >保存</a>
	    		<a id="${webName}_cancel_btn" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" style="margin-left: 15px;">取消</a>
	    	</div>
		</form>
	</div>
	<script type="text/javascript" src="${ctx}/resources/js/${moduleName}/${webName}.js"></script>
</body>
</html>